package cn.metafoo.banner.config;

import cn.metafoo.banner.core.BannerApplicationRunner;
import org.springframework.boot.autoconfigure.AutoConfiguration;
import org.springframework.context.annotation.Bean;
import org.springframework.core.env.Environment;

/**
 * Banner 的自动配置类
 *
 * @Author: fatto
 * @create: 2023/3/23 16:58
 */
@AutoConfiguration
public class MetaBannerAutoConfiguration {
    @Bean
    public BannerApplicationRunner bannerApplicationRunner(Environment env) {
        return new BannerApplicationRunner(env);
    }
}
